package com.ashlikun.zxing.view.full

import android.content.Context
import android.util.AttributeSet
import android.view.View
import com.ashlikun.camera.scan.CameraScan
import com.ashlikun.zxing.R
import com.ashlikun.zxing.ZxingBaseCameraScanView
import com.google.zxing.Result

/**
 * @author　　: 李坤
 * 创建时间: 2022/5/2 22:54
 * 邮箱　　：496546144@qq.com
 *
 * 功能介绍：空白干净的页面
 */

open class ZxingStyleFullView @JvmOverloads constructor(context: Context, attributeSet: AttributeSet? = null, def: Int = 0) :
    ZxingBaseCameraScanView(context, attributeSet, def) {

    override val flashlightId: Int
        get() = View.NO_ID

    override fun onCameraOpen(cameraScan: CameraScan<Result>) {
        super.onCameraOpen(cameraScan)
    }

    override fun getLayoutId(): Int {
        return R.layout.xzxing_style_full
    }

    override fun stopCamera() {
        super.stopCamera()
    }

}